<template>
  <swiper :options="swiperOption">
    <!-- slides -->
    <swiper-slide v-for="item of swiperList" :key="item.id"><img class="swiper-img" :src='item.imgurl'></swiper-slide>
    <!-- Optional controls -->
    <div class="swiper-pagination" slot="pagination"></div>


  </swiper>
</template>

<script>
  export default {
    name: "ArtSwiper",
    data() {
      return {
        swiperOption: {
          pagination: '.swiper-pagination',
          loop: true,
          autoplay:3000
        },
        swiperList: [
          {
            id: '001',
            imgurl: "http://img1.qunarzz.com/piao/fusion/1811/11/5fd3b05ad948bf02.jpg_750x200_56a60662.jpg"
          },
          {
            id: '002',
            imgurl: "http://img1.qunarzz.com/piao/fusion/1811/7c/8e5c4ab8ee8b7402.jpg_750x200_dd7a38dd.jpg"
          },
          {
            id: '003',
            imgurl: "http://img1.qunarzz.com/piao/fusion/1609/47/0cfdc871ac183702.jpg_750x200_f6896acd.jpg"
          }
        ]
      }

    }
  }
</script>

<style scoped>
  .swiper-container {
    margin-top: 1rem;
  }

  /deep/ .swiper-pagination-bullet-active {
    background: #ffffff;
  }

  .swiper-img {
    width: 100%;
  }
</style>
